<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
    <style>
        body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; }
        .container { text-align: center; margin-top: 50px; }
        input[type="file"] { margin: 20px 0; padding: 10px; }
        button { padding: 10px 20px; background: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; }
        button:hover { background: #45a049; }
        .link { margin-top: 20px; }
    </style>
</head>
<body>
    <div class="container">
        <h1>文件上传（自动压缩+去重）</h1>
        <form method="POST" action="/upload" enctype="multipart/form-data">
            <input type="file" name="file" required/>
            <br>
            <button type="submit">上传并压缩</button>
        </form>
    </div>
</body>
</html>
    